<template>
  <div id="sponsorProfile">
    <detail en_name="Associate" cn_name="公司人员" context=""></detail>
    <div id="context">
      <el-table
        :data="tableData"
        style="width: 80%">
        <el-table-column
          prop="date"
          label="入职日期"
          width="180">
        </el-table-column>
        <el-table-column
          prop="name"
          label="姓名"
          width="180">
        </el-table-column>
        <el-table-column
          prop="address"
          label="任职地址">
        </el-table-column>
        <el-table-column
          prop="position"
          label="担任职位"
          width="180">
        </el-table-column>
      </el-table>
    </div>
  </div>

</template>

<script>
    import Detail from "../../common/detail/detail";
    import {requestGet} from "../../../networks/request";
    export default {
        name: "sponsorProfile",
      components: {Detail},
      data() {
        return {
          tableData: []
        }
      },
      mounted() {
          requestGet({
            url: 'staff/selectAll'
          }).then(response=>{
            this.tableData=response.data
          })
      }
    }
</script>

<style scoped>
    #context{
      /*height: 600px;*/
      /*width: 80%;*/
    }
</style>
